﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css" />

@model IEnumerable<PessModel.Subject>

@{
    ViewBag.Title = "Index";
}

<div id="m-title">
    <h2>等第规则</h2>
    <div id="m-op">
        @if (Roles.IsUserInRole("Admin") && (bool)ViewBag.IsGradeRulesEnabled)
        {
            @Html.ActionLink("已确认评委列表", "Index", "GradeRuleVerification", new { activityID = (int)ViewBag.ActivityID }, null)
        }
    </div>
</div>
<table>
    <tr>
        <th>
            @*@Html.DisplayNameFor(model => model.Name)*@学科组
        </th>
        <th>
            规则数量
        </th>        
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GradeRules.Count)
            </td>            
            <td class="thAction">
                @Html.ActionLink("详细", "Details", new { subjectID = item.ID })
                @*                @Html.ActionLink("删除", "Delete", new { subjectID=item.ID })*@
            </td>
        </tr>
    }

</table>
